<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加文档页面</title>
    <style>
        #add-form {
            margin: auto;
            width: 300px;
            height: 500px;

        }
        #add-document {
            width: 300px;
            height: 30px;
            font-size: 18px;
            font-style: oblique;
            text-align: center;
        }
        .input {
            width: 300px;
            height: 20px;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <div id="add-form">
        <div id="add-document">
            <h3>添加文档</h3>
        </div>
        <div id="form">
            <form action="/do-doc/do-put" method="post">
                <div class="doc-name">
                    <input type="text" name="docName" placeholder="请输入文档名称" class="input" id="docName">
                </div>
                <div class="doc-url">
                    <input type="text" name="docUrl" placeholder="请输入文档地址" class="input" id="docUrl">
                </div>
                <div class="doc-btn" style="margin-top: 10px;margin-left: 80px;">
                    <input type="submit" value="确认">
                    <input type="button" value="重置" onclick="resetForm();" style="margin-left: 50px;">
                </div>
            </form>
        </div>
    </div>
</body>
<script>
    <!--定义js脚本-->
    <!--清空输入框中的输入-->
    resetForm = function() {
        var docNameInput = document.getElementById("docName");
		docNameInput.value = "";
		var docUrlInput = document.getElementById("docUrl");
		docUrlInput.value = "";
    }
</script>
</html>